package com.chinasoft.class6.group5;

import com.chinasoft.main.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class DuWeiYing implements TrueWord {
    List<String> wordList = new ArrayList<>();
    Random random = new Random();

    public DuWeiYing(){
        wordList.add("中国抗日战争胜利80周年！");
        wordList.add("今天看阅兵！");
        wordList.add("阅兵很精彩！");
    }
    @Override
    public String getWord() {
        int index = random.nextInt(wordList.size());
        return wordList.get( index);
    }

    @Override
    public String getName() {
        return "杜炜蓥";
    }

}
